function varargout = filloptargs(varargin)
    varargout = varargin(1:nargout);
    varargout(1:nargin - nargout) = varargin(nargout+1:nargin);
end
